package com.itheima.lambda.test1;

public class StringHandlerDemo {
    public static void main(String[] args) {
        StringHandler s1 = (String msg) -> {
            System.out.println("我是lambda实现" + msg);
        };
    }


    public static void useStringHandler(StringHandler stringHandler) {
        stringHandler.printMessage("itheima");
    }

}

interface StringHandler {
    void printMessage(String msg);
}